package com.his.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * (Schedule)实体类
 *
 * @author makejava
 * @since 2020-10-26 10:04:36
 */
@Data
public class Schedule implements Serializable {
    private static final long serialVersionUID = 878599501584061678L;

    private Integer id;
    /**
     * 排班时间
     */
    @NotNull(message = "排班日期不能为空")
    private Date time;
    /**
     * 部门名
     */
    @NotBlank(message = "部门不能为空")
    private String depName;
    /**
     * 病人id
     */
    @NotNull(message = "用户不能为空")
    private Integer userId;

    private String userName;

    private String account;

    private Date createTime;

    private Date updateTime;

}